package gui.ajuda;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import recados.Recados;

public class Sobre extends Form implements CommandListener {

    private final Command cmdVoltar;

    public Sobre() {
        super("Sobre");

        append("Recados:\nDesenvolvido Por: Antonio Diego\nhttp://antoniodiego.comule.com\ndiego-luz@live.com\n@TheAntonioDiego");
      
        cmdVoltar = new Command("Voltar", Command.BACK, 0);
        addCommand(cmdVoltar);

        setCommandListener(this);
    }

    public void commandAction(Command c, Displayable d) {
        if (c == cmdVoltar) {
            Recados.getInstance().setCurrent(new Ajuda());
        }
    }
}
